package com.taptech.doufu.bean;

import java.util.List;

/**
 * Created by ${LiYi} on 2017/1/4.
 */

public class NovelSortUpBean {
    String key;
    String title;
    List<NovelSortBean> list;
    NovelSortBean selNovelSortBean;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<NovelSortBean> getList() {
        return list;
    }

    public void setList(List<NovelSortBean> list) {
        this.list = list;
    }

    public NovelSortBean getSelNovelSortBean() {
        return selNovelSortBean;
    }

    public void setSelNovelSortBean(NovelSortBean selNovelSortBean) {
        this.selNovelSortBean = selNovelSortBean;
    }

    @Override
    public boolean equals(Object object) {
        if(object != null && object instanceof NovelSortBean){
            NovelSortBean novelSortBean = (NovelSortBean)object;
            String key = this.getKey();
            if(key != null && key.equals(novelSortBean.getKey())){
                return true;
            }
        }

        return super.equals(object);
    }
}
